package cn.jy.nvr.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.jy.nvr.domain.ProviderWatchFilmRecord;
import cn.jy.nvr.mapper.ProviderWatchFilmRecordMapper;

@Controller
public class ProviderWatchFilmController
{

 @Autowired 
 ProviderWatchFilmRecordMapper watchFilmRecordMapper;

  @RequestMapping({"display/providerWatchFilmRecord"})
  @ResponseBody
  public String providerWatchFilm(ProviderWatchFilmRecord filmRecord)
  {    
	  System.out.println(filmRecord);
	  watchFilmRecordMapper.save(filmRecord);
    return "Sucess";
  }
}